import request from './http'

export const loginApi = async (params) => {
	return request('admin/user/login', params)
}
export const loginByCodeApi = async (params) => {
	return request('admin/user/loginByCode', params)
}
export const sendVerifyCodeApi = async (params) => {
	return request('admin/user/sendVerifyCode', params)
}
export const getOpenId = async (params) => {
	return request('toc/customer/getOpenid',params,'GET')
}
export const getLoginInfo = async (params) => {
	return request('toc/customer/login',params)
}
export const updateById = async (params) => {
	return request('toc/customer/updateById',params)
}

export const addAddressApi = async (params) => {
	return request('receiveAddress/add',params)
}
export const updateAddressApi = async (params) => {
	return request('receiveAddress/updateById',params)
}
export const deleteAddressApi = async (params) => {
	return request('receiveAddress/deleteById',params)
}
export const pageListAddressApi = async (params) => {
	return request('receiveAddress/pageList',params)
}